package com.mind.core.net.msg;

import com.mind.core.net.model.IConnector;


/**
 * 系统内部产生的消息,用于根据用户的状态产生模拟消息,这种类型的消息都不应该输出到客户端，并且不能从客户端读取产生
 * 
 * 
 * 
 */
@SuppressWarnings("unchecked")
public abstract class SysInternalMessage extends BaseMessage implements ISysInternalMessage {
	protected IConnector sender;
	public SysInternalMessage() {
		super();
	}
	/**
	 * 消息的产生不能从客户端触发
	 */
	@Override
	public final boolean readImpl() {
		throw new UnsupportedOperationException();
	}

	/**
	 * 消息不能输出到客户端
	 */
	@Override
	public final boolean writeImpl() {
		throw new UnsupportedOperationException();
	}
	@Override
	public void setSender(IConnector player) {
		this.sender=player;
	}

	@Override
	public IConnector sender() {
		return this.sender;
	}
}